package com.lxd.sunso.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lxd.sunso.common.utils.PageUtils;
import com.lxd.sunso.product.entity.UserEntity;
import com.lxd.sunso.product.vo.UserVo;
import java.util.List;
import java.util.Map;

/**
 * @author lxd
 * @email sunlightcs@gmail.com
 * @date 2020-11-06 17:43:43
 */
public interface UserService extends IService<UserEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils search(Map<String, Object> params);

    UserEntity findById(Long id);

    void newUpdate(UserEntity user);


    boolean checkLogin(String username, String rawPassword) throws Exception;

    UserEntity getUserByUserName(String username);

    boolean saveUser(UserEntity user);

    String findCustomerByUser(String username);

    boolean changePassword(UserVo userVo);

    List<String> getAdminName(String roleId);
}

